<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<h2><s:text name="index.header"></s:text></h2>

<p><s:text name="index.text"></s:text></p>


<h3><s:text name="index.upcoming"></s:text></h3>
<s:if test="upcomingEvents.size() > 0">
<table class="green">
	<thead>
		<tr>
			<th><s:text name="eventBean.eventName"></s:text></th>
			<th><s:text name="eventBean.eventOwner"></s:text></th>
			<th><s:text name="eventBean.eventDate"></s:text></th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="upcomingEvents">
			<tr>
				<td><s:property value="eventName"/></td>
				<td><s:property value="eventOwner.firstName"/> <s:property value="eventOwner.lastName"/></td>
				<td><s:property value="eventDate"/></td>
			</tr>
		
		</s:iterator>
	
	</tbody>

</table>
</s:if><s:else>
<s:text name="index.noUpcomingEvents"></s:text>
</s:else>